/*
 * @Author: songleiluo 361215740@qq.com
 * @Date: 2023-12-31 10:22:06
 * @LastEditors: songleiluo 361215740@qq.com
 * @LastEditTime: 2024-01-28 17:01:23
 * @FilePath: \hospital\src\axios\http.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import instance from "@/axios/request.ts";
// 定义接口请求
// 登录
export const loginCode = (params: any) => {
    return instance({
        method: 'GET',
        url: '/auth/image_code',
        responseType: 'blob',  //用于数据是二进制数据，像是验证码、文件下载
        params
    })
}
// 登录
export const login = (data: any) => {
    return instance({
        method: 'POST',
        url: '/caseNurseManage/login',
        data
    })
}

//根据code查询多选/下拉数据
export const getLookUpByCode=(classifyCode:string)=>{
    return instance({
        method: 'GET',
        url: `caseNurseManage/lookupItem/queryByClassify/${classifyCode}`,
    }) 
}